// pages/goodsFail/goodsFail.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    reason: ''
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    if (options.reason) {
      this.setData({
        reason: options.reason
      })
    }
  },

  WeixinServer() {
    wx.openCustomerServiceChat({
      extInfo: {
        url: 'https://work.weixin.qq.com/kfid/kfc11f5184d7762c658',
      },
      corpId: 'ww106853c8ad050781',
      success(res) {
        console.log(res)
      },
      fail(fail) {
        console.log(fail)
      }
    })
  }
})